
extern struct process GprsInit_Process;


typedef struct{
	unsigned char* cmd;
	unsigned char* success_res;
	unsigned char* failed_res;
	struct process* notify;
}sGprsCmd;



#define		gprssend_cmd(Process,cmd,i);		process_start(&Process, (process_data_t)&cmd); 				\
												while(1){													\
													PROCESS_WAIT_EVENT();									\
													if(ev == PROCESS_EVENT_CMDEND){							\
														if( (*(uint8_t*)data) == 1){						\
															break;											\
														}if( (*(uint8_t*)data) == 2){						\
															i=0;											\
															break;											\
														}else if(i == 1){									\
															i=0;											\
															break;											\
														}else{												\
															process_start(&Process, (process_data_t)&cmd); 	\
														}													\
														i--;												\
													}														\
												}  

extern struct process GprsCMD_Process; 
extern struct process Gprs_GetIPD_Process;	
extern struct process Gprs_GetStatus_Process;													
extern struct process GprsRST_Process;													
												
void set_gprscmdval(sGprsCmd* GprsCmd, char* cmd, char* success_res, char* failed_res, struct process* notify);

